﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace School.Pages
{
    public partial class MasterStudnetFather : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int x = Convert.ToInt32(Request.QueryString["TypeId"]);
            if (x == 1)
            {
                lnkTeacherComments.Visible = false;
                
            }
            else
            {
                lnkSchedual.Visible = false;
                lnkResult.InnerText = "الامتحانات";
            }
        }

        protected void ResposeToStudentResult(object sender,EventArgs e)
        {
            int x = Convert.ToInt32(Request.QueryString["TypeId"]);
            if (x == 1)
            {
                lnkTeacherComments.Visible = false;
                Response.Redirect("../Admission/Reports/StudentResult.aspx?Id= " + Convert.ToString(Session["studentId"]));
            }
            else
            {
                Response.Redirect("../Admission/FatherStudentsResults.aspx?FatherId = " + Convert.ToString(Session["fatherId"]));
            }
            
        }        

        protected void ResposeToScheduler(object sender, EventArgs e)
        {
            int x = Convert.ToInt32(Request.QueryString["TypeId"]);
            if (x == 1)
            {
                lnkTeacherComments.Visible = false;
                Response.Redirect("../Admission/Reports/ShowClassCources.aspx");
            }
            else
            {
                Response.Redirect("../Admission/FatherStudentsScheduler.aspx?FatherId = " + Convert.ToString(Session["fatherId"]));
            }            
        }
       
    }
}